package com.js;

/**
 * 创建20圆形，只有5种颜色（要共享的内容）
 */
public class Circle implements Shape{
    private int x;
    private int y;
    private int radius;
    private String color;

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("颜色："+color+",x="+x+",y="+y+",radius="+radius);
    }


}
